package com.服务器端验证;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class Student2 {
    @NotBlank(message = "不能为空！！！")
    @Size(max = 6,min = 1)
    private String sname;
    @Max(value = 25,message = "年龄比较大了，应该结婚了")
    private String age;
    private String birthday;
    public void jjj(){
        System.out.println("ww");
    }
}
